package product;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

//파일 저장을 위한 직렬화
public class ProductData implements Serializable {

	String proCode;// 제품코드
	String proName;// 제품이름
	int proPrice;// 단가
	int proEa;// 생산량
	int proTot;// 금액
	String proDate;// 생산일자
	int count;// 생산번호

	public ProductData(String c, String n, int p, int e, int t, int cnt) {
		SimpleDateFormat sd = new SimpleDateFormat("yyMMdd");
		this.proDate = sd.format(new Date());
		this.proCode = c;
		this.proName = n;
		this.proPrice = p;
		this.proEa = e;
		this.proTot = t;
		this.count = cnt;
	}

	public int getProTot() {
		return proTot;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public void setProDate(String proDate) {
		this.proDate = proDate;
	}

	public void setProTot(int proTot) {
		this.proTot = proTot;
	}

	public String getProDate() {
		return proDate;
	}

	public String getProCode() {
		return proCode;
	}

	public void setProCode(String proCode) {
		this.proCode = proCode;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public int getProEa() {
		return proEa;
	}

	public void setProEa(int proEa) {
		this.proEa = proEa;
	}

	public int getProPrice() {
		return proPrice;
	}

	public void setProPrice(int proPrice) {
		this.proPrice = proPrice;
	}

}
